\(\int (a+a \sec (c+d x))^{3/2} (A+B \sec (c+d x)+C \sec ^2(c+d x)) \, dx\) [494]
Optimal result
Integrand size = 35, antiderivative size = 142 \[
\int (a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\frac {2 a^{3/2} A \arctan \left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{d}+\frac {2 a^2 (15 A+20 B+12 C) \tan (c+d x)}{15 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a (5 B+3 C) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{15 d}+\frac {2 C (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{5 d}
\]
[Out]
2*a^(3/2)*A*arctan(a^(1/2)*tan(d*x+c)/(a+a*sec(d*x+c))^(1/2))/d+2/5*C*(a+a*sec(d*x+c))^(3/2)*tan(d*x+c)/d+2/15
*a^2*(15*A+20*B+12*C)*tan(d*x+c)/d/(a+a*sec(d*x+c))^(1/2)+2/15*a*(5*B+3*C)*(a+a*sec(d*x+c))^(1/2)*tan(d*x+c)/d
Rubi [A] (verified)
Time = 0.29 (sec) , antiderivative size = 142, normalized size of antiderivative = 1.00, number of
steps used = 6, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.171, Rules used = {4139, 4002, 4000, 3859, 209,
3877} \[
\int (a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\frac {2 a^{3/2} A \arctan \left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a \sec (c+d x)+a}}\right )}{d}+\frac {2 a^2 (15 A+20 B+12 C) \tan (c+d x)}{15 d \sqrt {a \sec (c+d x)+a}}+\frac {2 a (5 B+3 C) \tan (c+d x) \sqrt {a \sec (c+d x)+a}}{15 d}+\frac {2 C \tan (c+d x) (a \sec (c+d x)+a)^{3/2}}{5 d}
\]
[In]
Int[(a + a*Sec[c + d*x])^(3/2)*(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2),x]
[Out]
(2*a^(3/2)*A*ArcTan[(Sqrt[a]*Tan[c + d*x])/Sqrt[a + a*Sec[c + d*x]]])/d + (2*a^2*(15*A + 20*B + 12*C)*Tan[c +
d*x])/(15*d*Sqrt[a + a*Sec[c + d*x]]) + (2*a*(5*B + 3*C)*Sqrt[a + a*Sec[c + d*x]]*Tan[c + d*x])/(15*d) + (2*C*
(a + a*Sec[c + d*x])^(3/2)*Tan[c + d*x])/(5*d)
Rule 209
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[b, 2]))*ArcTan[Rt[b, 2]*(x/Rt[a, 2])], x] /;
FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a, 0] || GtQ[b, 0])
Rule 3859
Int[Sqrt[csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Dist[-2*(b/d), Subst[Int[1/(a + x^2), x], x, b*(C
ot[c + d*x]/Sqrt[a + b*Csc[c + d*x]])], x] /; FreeQ[{a, b, c, d}, x] && EqQ[a^2 - b^2, 0]
Rule 3877
Int[csc[(e_.) + (f_.)*(x_)]*Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)], x_Symbol] :> Simp[-2*b*(Cot[e + f*x]/(
f*Sqrt[a + b*Csc[e + f*x]])), x] /; FreeQ[{a, b, e, f}, x] && EqQ[a^2 - b^2, 0]
Rule 4000
Int[Sqrt[csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_)]*(csc[(e_.) + (f_.)*(x_)]*(d_.) + (c_)), x_Symbol] :> Dist[c, In
t[Sqrt[a + b*Csc[e + f*x]], x], x] + Dist[d, Int[Sqrt[a + b*Csc[e + f*x]]*Csc[e + f*x], x], x] /; FreeQ[{a, b,
c, d, e, f}, x] && NeQ[b*c - a*d, 0] && EqQ[a^2 - b^2, 0]
Rule 4002
Int[(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_)*(csc[(e_.) + (f_.)*(x_)]*(d_.) + (c_)), x_Symbol] :> Simp[(-b)
*d*Cot[e + f*x]*((a + b*Csc[e + f*x])^(m - 1)/(f*m)), x] + Dist[1/m, Int[(a + b*Csc[e + f*x])^(m - 1)*Simp[a*c
*m + (b*c*m + a*d*(2*m - 1))*Csc[e + f*x], x], x], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] &&
GtQ[m, 1] && EqQ[a^2 - b^2, 0] && IntegerQ[2*m]
Rule 4139
Int[((A_.) + csc[(e_.) + (f_.)*(x_)]*(B_.) + csc[(e_.) + (f_.)*(x_)]^2*(C_.))*(csc[(e_.) + (f_.)*(x_)]*(b_.) +
(a_))^(m_.), x_Symbol] :> Simp[(-C)*Cot[e + f*x]*((a + b*Csc[e + f*x])^m/(f*(m + 1))), x] + Dist[1/(b*(m + 1)
), Int[(a + b*Csc[e + f*x])^m*Simp[A*b*(m + 1) + (a*C*m + b*B*(m + 1))*Csc[e + f*x], x], x], x] /; FreeQ[{a, b
, e, f, A, B, C, m}, x] && EqQ[a^2 - b^2, 0] && !LtQ[m, -2^(-1)]
Rubi steps \begin{align*}
\text {integral}& = \frac {2 C (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{5 d}+\frac {2 \int (a+a \sec (c+d x))^{3/2} \left (\frac {5 a A}{2}+\frac {1}{2} a (5 B+3 C) \sec (c+d x)\right ) \, dx}{5 a} \\ & = \frac {2 a (5 B+3 C) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{15 d}+\frac {2 C (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{5 d}+\frac {4 \int \sqrt {a+a \sec (c+d x)} \left (\frac {15 a^2 A}{4}+\frac {1}{4} a^2 (15 A+20 B+12 C) \sec (c+d x)\right ) \, dx}{15 a} \\ & = \frac {2 a (5 B+3 C) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{15 d}+\frac {2 C (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{5 d}+(a A) \int \sqrt {a+a \sec (c+d x)} \, dx+\frac {1}{15} (a (15 A+20 B+12 C)) \int \sec (c+d x) \sqrt {a+a \sec (c+d x)} \, dx \\ & = \frac {2 a^2 (15 A+20 B+12 C) \tan (c+d x)}{15 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a (5 B+3 C) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{15 d}+\frac {2 C (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{5 d}-\frac {\left (2 a^2 A\right ) \text {Subst}\left (\int \frac {1}{a+x^2} \, dx,x,-\frac {a \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{d} \\ & = \frac {2 a^{3/2} A \arctan \left (\frac {\sqrt {a} \tan (c+d x)}{\sqrt {a+a \sec (c+d x)}}\right )}{d}+\frac {2 a^2 (15 A+20 B+12 C) \tan (c+d x)}{15 d \sqrt {a+a \sec (c+d x)}}+\frac {2 a (5 B+3 C) \sqrt {a+a \sec (c+d x)} \tan (c+d x)}{15 d}+\frac {2 C (a+a \sec (c+d x))^{3/2} \tan (c+d x)}{5 d} \\
\end{align*}
Mathematica [A] (verified)
Time = 2.49 (sec) , antiderivative size = 132, normalized size of antiderivative = 0.93
\[
\int (a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\frac {a \sec \left (\frac {1}{2} (c+d x)\right ) \sec ^2(c+d x) \sqrt {a (1+\sec (c+d x))} \left (30 \sqrt {2} A \arcsin \left (\sqrt {2} \sin \left (\frac {1}{2} (c+d x)\right )\right ) \cos ^{\frac {5}{2}}(c+d x)+2 (15 A+25 B+24 C+2 (5 B+9 C) \cos (c+d x)+(15 A+25 B+18 C) \cos (2 (c+d x))) \sin \left (\frac {1}{2} (c+d x)\right )\right )}{30 d}
\]
[In]
Integrate[(a + a*Sec[c + d*x])^(3/2)*(A + B*Sec[c + d*x] + C*Sec[c + d*x]^2),x]
[Out]
(a*Sec[(c + d*x)/2]*Sec[c + d*x]^2*Sqrt[a*(1 + Sec[c + d*x])]*(30*Sqrt[2]*A*ArcSin[Sqrt[2]*Sin[(c + d*x)/2]]*C
os[c + d*x]^(5/2) + 2*(15*A + 25*B + 24*C + 2*(5*B + 9*C)*Cos[c + d*x] + (15*A + 25*B + 18*C)*Cos[2*(c + d*x)]
)*Sin[(c + d*x)/2]))/(30*d)
Maple [A] (verified)
Time = 1.25 (sec) , antiderivative size = 218, normalized size of antiderivative = 1.54
| | |
method | result | size |
| | |
default |
\(\frac {2 a \sqrt {a \left (1+\sec \left (d x +c \right )\right )}\, \left (15 A \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {arctanh}\left (\frac {\sin \left (d x +c \right )}{\left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}}\right ) \cos \left (d x +c \right )+15 A \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {arctanh}\left (\frac {\sin \left (d x +c \right )}{\left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}}\right )+15 A \sin \left (d x +c \right )+25 B \sin \left (d x +c \right )+18 C \sin \left (d x +c \right )+5 B \tan \left (d x +c \right )+9 C \tan \left (d x +c \right )+3 C \sec \left (d x +c \right ) \tan \left (d x +c \right )\right )}{15 d \left (\cos \left (d x +c \right )+1\right )}\) |
\(218\) |
parts |
\(\frac {2 A a \sqrt {a \left (1+\sec \left (d x +c \right )\right )}\, \left (\sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {arctanh}\left (\frac {\sin \left (d x +c \right )}{\left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}}\right ) \cos \left (d x +c \right )+\sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}\, \operatorname {arctanh}\left (\frac {\sin \left (d x +c \right )}{\left (\cos \left (d x +c \right )+1\right ) \sqrt {-\frac {\cos \left (d x +c \right )}{\cos \left (d x +c \right )+1}}}\right )+\sin \left (d x +c \right )\right )}{d \left (\cos \left (d x +c \right )+1\right )}+\frac {2 B a \sqrt {a \left (1+\sec \left (d x +c \right )\right )}\, \left (5 \sin \left (d x +c \right )+\tan \left (d x +c \right )\right )}{3 d \left (\cos \left (d x +c \right )+1\right )}+\frac {2 C a \sqrt {a \left (1+\sec \left (d x +c \right )\right )}\, \left (6 \sin \left (d x +c \right )+3 \tan \left (d x +c \right )+\sec \left (d x +c \right ) \tan \left (d x +c \right )\right )}{5 d \left (\cos \left (d x +c \right )+1\right )}\) |
\(265\) |
| | |
|
|
|
[In]
int((a+a*sec(d*x+c))^(3/2)*(A+B*sec(d*x+c)+C*sec(d*x+c)^2),x,method=_RETURNVERBOSE)
[Out]
2/15*a/d*(a*(1+sec(d*x+c)))^(1/2)/(cos(d*x+c)+1)*(15*A*(-cos(d*x+c)/(cos(d*x+c)+1))^(1/2)*arctanh(sin(d*x+c)/(
cos(d*x+c)+1)/(-cos(d*x+c)/(cos(d*x+c)+1))^(1/2))*cos(d*x+c)+15*A*(-cos(d*x+c)/(cos(d*x+c)+1))^(1/2)*arctanh(s
in(d*x+c)/(cos(d*x+c)+1)/(-cos(d*x+c)/(cos(d*x+c)+1))^(1/2))+15*A*sin(d*x+c)+25*B*sin(d*x+c)+18*C*sin(d*x+c)+5
*B*tan(d*x+c)+9*C*tan(d*x+c)+3*C*sec(d*x+c)*tan(d*x+c))
Fricas [A] (verification not implemented)
none
Time = 0.28 (sec) , antiderivative size = 364, normalized size of antiderivative = 2.56
\[
\int (a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\left [\frac {15 \, {\left (A a \cos \left (d x + c\right )^{3} + A a \cos \left (d x + c\right )^{2}\right )} \sqrt {-a} \log \left (\frac {2 \, a \cos \left (d x + c\right )^{2} - 2 \, \sqrt {-a} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right ) \sin \left (d x + c\right ) + a \cos \left (d x + c\right ) - a}{\cos \left (d x + c\right ) + 1}\right ) + 2 \, {\left ({\left (15 \, A + 25 \, B + 18 \, C\right )} a \cos \left (d x + c\right )^{2} + {\left (5 \, B + 9 \, C\right )} a \cos \left (d x + c\right ) + 3 \, C a\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )}{15 \, {\left (d \cos \left (d x + c\right )^{3} + d \cos \left (d x + c\right )^{2}\right )}}, -\frac {2 \, {\left (15 \, {\left (A a \cos \left (d x + c\right )^{3} + A a \cos \left (d x + c\right )^{2}\right )} \sqrt {a} \arctan \left (\frac {\sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \cos \left (d x + c\right )}{\sqrt {a} \sin \left (d x + c\right )}\right ) - {\left ({\left (15 \, A + 25 \, B + 18 \, C\right )} a \cos \left (d x + c\right )^{2} + {\left (5 \, B + 9 \, C\right )} a \cos \left (d x + c\right ) + 3 \, C a\right )} \sqrt {\frac {a \cos \left (d x + c\right ) + a}{\cos \left (d x + c\right )}} \sin \left (d x + c\right )\right )}}{15 \, {\left (d \cos \left (d x + c\right )^{3} + d \cos \left (d x + c\right )^{2}\right )}}\right ]
\]
[In]
integrate((a+a*sec(d*x+c))^(3/2)*(A+B*sec(d*x+c)+C*sec(d*x+c)^2),x, algorithm="fricas")
[Out]
[1/15*(15*(A*a*cos(d*x + c)^3 + A*a*cos(d*x + c)^2)*sqrt(-a)*log((2*a*cos(d*x + c)^2 - 2*sqrt(-a)*sqrt((a*cos(
d*x + c) + a)/cos(d*x + c))*cos(d*x + c)*sin(d*x + c) + a*cos(d*x + c) - a)/(cos(d*x + c) + 1)) + 2*((15*A + 2
5*B + 18*C)*a*cos(d*x + c)^2 + (5*B + 9*C)*a*cos(d*x + c) + 3*C*a)*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*sin
(d*x + c))/(d*cos(d*x + c)^3 + d*cos(d*x + c)^2), -2/15*(15*(A*a*cos(d*x + c)^3 + A*a*cos(d*x + c)^2)*sqrt(a)*
arctan(sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*cos(d*x + c)/(sqrt(a)*sin(d*x + c))) - ((15*A + 25*B + 18*C)*a*
cos(d*x + c)^2 + (5*B + 9*C)*a*cos(d*x + c) + 3*C*a)*sqrt((a*cos(d*x + c) + a)/cos(d*x + c))*sin(d*x + c))/(d*
cos(d*x + c)^3 + d*cos(d*x + c)^2)]
Sympy [F]
\[
\int (a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\int \left (a \left (\sec {\left (c + d x \right )} + 1\right )\right )^{\frac {3}{2}} \left (A + B \sec {\left (c + d x \right )} + C \sec ^{2}{\left (c + d x \right )}\right )\, dx
\]
[In]
integrate((a+a*sec(d*x+c))**(3/2)*(A+B*sec(d*x+c)+C*sec(d*x+c)**2),x)
[Out]
Integral((a*(sec(c + d*x) + 1))**(3/2)*(A + B*sec(c + d*x) + C*sec(c + d*x)**2), x)
Maxima [F]
\[
\int (a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\int { {\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right ) + A\right )} {\left (a \sec \left (d x + c\right ) + a\right )}^{\frac {3}{2}} \,d x }
\]
[In]
integrate((a+a*sec(d*x+c))^(3/2)*(A+B*sec(d*x+c)+C*sec(d*x+c)^2),x, algorithm="maxima")
[Out]
-1/30*(15*((A*a*cos(2*d*x + 2*c)^2 + A*a*sin(2*d*x + 2*c)^2 + 2*A*a*cos(2*d*x + 2*c) + A*a)*arctan2((cos(2*d*x
+ 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)^(1/4)*sin(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2
*c) + 1)), (cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)^(1/4)*cos(1/2*arctan2(sin(2*d*x
+ 2*c), cos(2*d*x + 2*c) + 1)) + 1) - (A*a*cos(2*d*x + 2*c)^2 + A*a*sin(2*d*x + 2*c)^2 + 2*A*a*cos(2*d*x + 2*c
) + A*a)*arctan2((cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)^(1/4)*sin(1/2*arctan2(sin(
2*d*x + 2*c), cos(2*d*x + 2*c) + 1)), (cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)^(1/4)
*cos(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1)) - 1) - 2*(A*a*d*cos(2*d*x + 2*c)^2 + A*a*d*sin(2*d*x
+ 2*c)^2 + 2*A*a*d*cos(2*d*x + 2*c) + A*a*d)*integrate((cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x
+ 2*c) + 1)^(1/4)*(((cos(6*d*x + 6*c)*cos(2*d*x + 2*c) + 2*cos(4*d*x + 4*c)*cos(2*d*x + 2*c) + cos(2*d*x + 2*
c)^2 + sin(6*d*x + 6*c)*sin(2*d*x + 2*c) + 2*sin(4*d*x + 4*c)*sin(2*d*x + 2*c) + sin(2*d*x + 2*c)^2)*cos(7/2*a
rctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c))) + (cos(2*d*x + 2*c)*sin(6*d*x + 6*c) + 2*cos(2*d*x + 2*c)*sin(4*d*
x + 4*c) - cos(6*d*x + 6*c)*sin(2*d*x + 2*c) - 2*cos(4*d*x + 4*c)*sin(2*d*x + 2*c))*sin(7/2*arctan2(sin(2*d*x
+ 2*c), cos(2*d*x + 2*c))))*cos(3/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1)) - ((cos(2*d*x + 2*c)*sin(
6*d*x + 6*c) + 2*cos(2*d*x + 2*c)*sin(4*d*x + 4*c) - cos(6*d*x + 6*c)*sin(2*d*x + 2*c) - 2*cos(4*d*x + 4*c)*si
n(2*d*x + 2*c))*cos(7/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c))) - (cos(6*d*x + 6*c)*cos(2*d*x + 2*c) + 2*
cos(4*d*x + 4*c)*cos(2*d*x + 2*c) + cos(2*d*x + 2*c)^2 + sin(6*d*x + 6*c)*sin(2*d*x + 2*c) + 2*sin(4*d*x + 4*c
)*sin(2*d*x + 2*c) + sin(2*d*x + 2*c)^2)*sin(7/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c))))*sin(3/2*arctan2
(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1)))/((cos(2*d*x + 2*c)^4 + sin(2*d*x + 2*c)^4 + (cos(2*d*x + 2*c)^2 + s
in(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*cos(6*d*x + 6*c)^2 + 4*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 +
2*cos(2*d*x + 2*c) + 1)*cos(4*d*x + 4*c)^2 + 2*cos(2*d*x + 2*c)^3 + (cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 +
2*cos(2*d*x + 2*c) + 1)*sin(6*d*x + 6*c)^2 + 4*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c)
+ 1)*sin(4*d*x + 4*c)^2 + (2*cos(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(2*d*x + 2*c)^2 + 2*(cos(2*d*x +
2*c)^3 + cos(2*d*x + 2*c)*sin(2*d*x + 2*c)^2 + 2*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c)
+ 1)*cos(4*d*x + 4*c) + 2*cos(2*d*x + 2*c)^2 + cos(2*d*x + 2*c))*cos(6*d*x + 6*c) + 4*(cos(2*d*x + 2*c)^3 + c
os(2*d*x + 2*c)*sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c)^2 + cos(2*d*x + 2*c))*cos(4*d*x + 4*c) + cos(2*d*x + 2
*c)^2 + 2*(sin(2*d*x + 2*c)^3 + 2*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(4*d*x
+ 4*c) + (cos(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(2*d*x + 2*c))*sin(6*d*x + 6*c) + 4*(sin(2*d*x + 2*
c)^3 + (cos(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(2*d*x + 2*c))*sin(4*d*x + 4*c))*cos(3/2*arctan2(sin(2
*d*x + 2*c), cos(2*d*x + 2*c) + 1))^2 + (cos(2*d*x + 2*c)^4 + sin(2*d*x + 2*c)^4 + (cos(2*d*x + 2*c)^2 + sin(2
*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*cos(6*d*x + 6*c)^2 + 4*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*co
s(2*d*x + 2*c) + 1)*cos(4*d*x + 4*c)^2 + 2*cos(2*d*x + 2*c)^3 + (cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*c
os(2*d*x + 2*c) + 1)*sin(6*d*x + 6*c)^2 + 4*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)
*sin(4*d*x + 4*c)^2 + (2*cos(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(2*d*x + 2*c)^2 + 2*(cos(2*d*x + 2*c)
^3 + cos(2*d*x + 2*c)*sin(2*d*x + 2*c)^2 + 2*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1
)*cos(4*d*x + 4*c) + 2*cos(2*d*x + 2*c)^2 + cos(2*d*x + 2*c))*cos(6*d*x + 6*c) + 4*(cos(2*d*x + 2*c)^3 + cos(2
*d*x + 2*c)*sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c)^2 + cos(2*d*x + 2*c))*cos(4*d*x + 4*c) + cos(2*d*x + 2*c)^
2 + 2*(sin(2*d*x + 2*c)^3 + 2*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(4*d*x + 4
*c) + (cos(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(2*d*x + 2*c))*sin(6*d*x + 6*c) + 4*(sin(2*d*x + 2*c)^3
+ (cos(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(2*d*x + 2*c))*sin(4*d*x + 4*c))*sin(3/2*arctan2(sin(2*d*x
+ 2*c), cos(2*d*x + 2*c) + 1))^2), x) - 2*((5*A + 6*B + 4*C)*a*d*cos(2*d*x + 2*c)^2 + (5*A + 6*B + 4*C)*a*d*s
in(2*d*x + 2*c)^2 + 2*(5*A + 6*B + 4*C)*a*d*cos(2*d*x + 2*c) + (5*A + 6*B + 4*C)*a*d)*integrate((cos(2*d*x + 2
*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)^(1/4)*(((cos(6*d*x + 6*c)*cos(2*d*x + 2*c) + 2*cos(4*d*x
+ 4*c)*cos(2*d*x + 2*c) + cos(2*d*x + 2*c)^2 + sin(6*d*x + 6*c)*sin(2*d*x + 2*c) + 2*sin(4*d*x + 4*c)*sin(2*d*
x + 2*c) + sin(2*d*x + 2*c)^2)*cos(5/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c))) + (cos(2*d*x + 2*c)*sin(6*
d*x + 6*c) + 2*cos(2*d*x + 2*c)*sin(4*d*x + 4*c) - cos(6*d*x + 6*c)*sin(2*d*x + 2*c) - 2*cos(4*d*x + 4*c)*sin(
2*d*x + 2*c))*sin(5/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c))))*cos(3/2*arctan2(sin(2*d*x + 2*c), cos(2*d*
x + 2*c) + 1)) - ((cos(2*d*x + 2*c)*sin(6*d*x + 6*c) + 2*cos(2*d*x + 2*c)*sin(4*d*x + 4*c) - cos(6*d*x + 6*c)*
sin(2*d*x + 2*c) - 2*cos(4*d*x + 4*c)*sin(2*d*x + 2*c))*cos(5/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c))) -
(cos(6*d*x + 6*c)*cos(2*d*x + 2*c) + 2*cos(4*d*x + 4*c)*cos(2*d*x + 2*c) + cos(2*d*x + 2*c)^2 + sin(6*d*x + 6
*c)*sin(2*d*x + 2*c) + 2*sin(4*d*x + 4*c)*sin(2*d*x + 2*c) + sin(2*d*x + 2*c)^2)*sin(5/2*arctan2(sin(2*d*x + 2
*c), cos(2*d*x + 2*c))))*sin(3/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1)))/((cos(2*d*x + 2*c)^4 + sin(
2*d*x + 2*c)^4 + (cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*cos(6*d*x + 6*c)^2 + 4*(co
s(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*cos(4*d*x + 4*c)^2 + 2*cos(2*d*x + 2*c)^3 + (c
os(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(6*d*x + 6*c)^2 + 4*(cos(2*d*x + 2*c)^2 +
sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(4*d*x + 4*c)^2 + (2*cos(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) +
1)*sin(2*d*x + 2*c)^2 + 2*(cos(2*d*x + 2*c)^3 + cos(2*d*x + 2*c)*sin(2*d*x + 2*c)^2 + 2*(cos(2*d*x + 2*c)^2 +
sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*cos(4*d*x + 4*c) + 2*cos(2*d*x + 2*c)^2 + cos(2*d*x + 2*c))*cos(
6*d*x + 6*c) + 4*(cos(2*d*x + 2*c)^3 + cos(2*d*x + 2*c)*sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c)^2 + cos(2*d*x
+ 2*c))*cos(4*d*x + 4*c) + cos(2*d*x + 2*c)^2 + 2*(sin(2*d*x + 2*c)^3 + 2*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*
c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(4*d*x + 4*c) + (cos(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(2*d*x + 2*
c))*sin(6*d*x + 6*c) + 4*(sin(2*d*x + 2*c)^3 + (cos(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(2*d*x + 2*c))
*sin(4*d*x + 4*c))*cos(3/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1))^2 + (cos(2*d*x + 2*c)^4 + sin(2*d*
x + 2*c)^4 + (cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*cos(6*d*x + 6*c)^2 + 4*(cos(2*
d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*cos(4*d*x + 4*c)^2 + 2*cos(2*d*x + 2*c)^3 + (cos(2
*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(6*d*x + 6*c)^2 + 4*(cos(2*d*x + 2*c)^2 + sin(
2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(4*d*x + 4*c)^2 + (2*cos(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*
sin(2*d*x + 2*c)^2 + 2*(cos(2*d*x + 2*c)^3 + cos(2*d*x + 2*c)*sin(2*d*x + 2*c)^2 + 2*(cos(2*d*x + 2*c)^2 + sin
(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*cos(4*d*x + 4*c) + 2*cos(2*d*x + 2*c)^2 + cos(2*d*x + 2*c))*cos(6*d*
x + 6*c) + 4*(cos(2*d*x + 2*c)^3 + cos(2*d*x + 2*c)*sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c)^2 + cos(2*d*x + 2*
c))*cos(4*d*x + 4*c) + cos(2*d*x + 2*c)^2 + 2*(sin(2*d*x + 2*c)^3 + 2*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2
+ 2*cos(2*d*x + 2*c) + 1)*sin(4*d*x + 4*c) + (cos(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(2*d*x + 2*c))*
sin(6*d*x + 6*c) + 4*(sin(2*d*x + 2*c)^3 + (cos(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(2*d*x + 2*c))*sin
(4*d*x + 4*c))*sin(3/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1))^2), x) - 2*((7*A + 8*B + 12*C)*a*d*cos
(2*d*x + 2*c)^2 + (7*A + 8*B + 12*C)*a*d*sin(2*d*x + 2*c)^2 + 2*(7*A + 8*B + 12*C)*a*d*cos(2*d*x + 2*c) + (7*A
+ 8*B + 12*C)*a*d)*integrate((cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)^(1/4)*(((cos(
6*d*x + 6*c)*cos(2*d*x + 2*c) + 2*cos(4*d*x + 4*c)*cos(2*d*x + 2*c) + cos(2*d*x + 2*c)^2 + sin(6*d*x + 6*c)*si
n(2*d*x + 2*c) + 2*sin(4*d*x + 4*c)*sin(2*d*x + 2*c) + sin(2*d*x + 2*c)^2)*cos(3/2*arctan2(sin(2*d*x + 2*c), c
os(2*d*x + 2*c))) + (cos(2*d*x + 2*c)*sin(6*d*x + 6*c) + 2*cos(2*d*x + 2*c)*sin(4*d*x + 4*c) - cos(6*d*x + 6*c
)*sin(2*d*x + 2*c) - 2*cos(4*d*x + 4*c)*sin(2*d*x + 2*c))*sin(3/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c)))
)*cos(3/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1)) - ((cos(2*d*x + 2*c)*sin(6*d*x + 6*c) + 2*cos(2*d*x
+ 2*c)*sin(4*d*x + 4*c) - cos(6*d*x + 6*c)*sin(2*d*x + 2*c) - 2*cos(4*d*x + 4*c)*sin(2*d*x + 2*c))*cos(3/2*ar
ctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c))) - (cos(6*d*x + 6*c)*cos(2*d*x + 2*c) + 2*cos(4*d*x + 4*c)*cos(2*d*x
+ 2*c) + cos(2*d*x + 2*c)^2 + sin(6*d*x + 6*c)*sin(2*d*x + 2*c) + 2*sin(4*d*x + 4*c)*sin(2*d*x + 2*c) + sin(2
*d*x + 2*c)^2)*sin(3/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c))))*sin(3/2*arctan2(sin(2*d*x + 2*c), cos(2*d
*x + 2*c) + 1)))/((cos(2*d*x + 2*c)^4 + sin(2*d*x + 2*c)^4 + (cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(
2*d*x + 2*c) + 1)*cos(6*d*x + 6*c)^2 + 4*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*co
s(4*d*x + 4*c)^2 + 2*cos(2*d*x + 2*c)^3 + (cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*s
in(6*d*x + 6*c)^2 + 4*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(4*d*x + 4*c)^2 +
(2*cos(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(2*d*x + 2*c)^2 + 2*(cos(2*d*x + 2*c)^3 + cos(2*d*x + 2*c)*
sin(2*d*x + 2*c)^2 + 2*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*cos(4*d*x + 4*c) + 2
*cos(2*d*x + 2*c)^2 + cos(2*d*x + 2*c))*cos(6*d*x + 6*c) + 4*(cos(2*d*x + 2*c)^3 + cos(2*d*x + 2*c)*sin(2*d*x
+ 2*c)^2 + 2*cos(2*d*x + 2*c)^2 + cos(2*d*x + 2*c))*cos(4*d*x + 4*c) + cos(2*d*x + 2*c)^2 + 2*(sin(2*d*x + 2*c
)^3 + 2*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(4*d*x + 4*c) + (cos(2*d*x + 2*c
)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(2*d*x + 2*c))*sin(6*d*x + 6*c) + 4*(sin(2*d*x + 2*c)^3 + (cos(2*d*x + 2*c)^2
+ 2*cos(2*d*x + 2*c) + 1)*sin(2*d*x + 2*c))*sin(4*d*x + 4*c))*cos(3/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2
*c) + 1))^2 + (cos(2*d*x + 2*c)^4 + sin(2*d*x + 2*c)^4 + (cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*
x + 2*c) + 1)*cos(6*d*x + 6*c)^2 + 4*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*cos(4*
d*x + 4*c)^2 + 2*cos(2*d*x + 2*c)^3 + (cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(6
*d*x + 6*c)^2 + 4*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(4*d*x + 4*c)^2 + (2*c
os(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(2*d*x + 2*c)^2 + 2*(cos(2*d*x + 2*c)^3 + cos(2*d*x + 2*c)*sin(
2*d*x + 2*c)^2 + 2*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*cos(4*d*x + 4*c) + 2*cos
(2*d*x + 2*c)^2 + cos(2*d*x + 2*c))*cos(6*d*x + 6*c) + 4*(cos(2*d*x + 2*c)^3 + cos(2*d*x + 2*c)*sin(2*d*x + 2*
c)^2 + 2*cos(2*d*x + 2*c)^2 + cos(2*d*x + 2*c))*cos(4*d*x + 4*c) + cos(2*d*x + 2*c)^2 + 2*(sin(2*d*x + 2*c)^3
+ 2*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(4*d*x + 4*c) + (cos(2*d*x + 2*c)^2
+ 2*cos(2*d*x + 2*c) + 1)*sin(2*d*x + 2*c))*sin(6*d*x + 6*c) + 4*(sin(2*d*x + 2*c)^3 + (cos(2*d*x + 2*c)^2 + 2
*cos(2*d*x + 2*c) + 1)*sin(2*d*x + 2*c))*sin(4*d*x + 4*c))*sin(3/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c)
+ 1))^2), x) - 2*((3*A + 2*B)*a*d*cos(2*d*x + 2*c)^2 + (3*A + 2*B)*a*d*sin(2*d*x + 2*c)^2 + 2*(3*A + 2*B)*a*d*
cos(2*d*x + 2*c) + (3*A + 2*B)*a*d)*integrate((cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) +
1)^(1/4)*(((cos(6*d*x + 6*c)*cos(2*d*x + 2*c) + 2*cos(4*d*x + 4*c)*cos(2*d*x + 2*c) + cos(2*d*x + 2*c)^2 + sin
(6*d*x + 6*c)*sin(2*d*x + 2*c) + 2*sin(4*d*x + 4*c)*sin(2*d*x + 2*c) + sin(2*d*x + 2*c)^2)*cos(1/2*arctan2(sin
(2*d*x + 2*c), cos(2*d*x + 2*c))) + (cos(2*d*x + 2*c)*sin(6*d*x + 6*c) + 2*cos(2*d*x + 2*c)*sin(4*d*x + 4*c) -
cos(6*d*x + 6*c)*sin(2*d*x + 2*c) - 2*cos(4*d*x + 4*c)*sin(2*d*x + 2*c))*sin(1/2*arctan2(sin(2*d*x + 2*c), co
s(2*d*x + 2*c))))*cos(3/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1)) - ((cos(2*d*x + 2*c)*sin(6*d*x + 6*
c) + 2*cos(2*d*x + 2*c)*sin(4*d*x + 4*c) - cos(6*d*x + 6*c)*sin(2*d*x + 2*c) - 2*cos(4*d*x + 4*c)*sin(2*d*x +
2*c))*cos(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c))) - (cos(6*d*x + 6*c)*cos(2*d*x + 2*c) + 2*cos(4*d*x
+ 4*c)*cos(2*d*x + 2*c) + cos(2*d*x + 2*c)^2 + sin(6*d*x + 6*c)*sin(2*d*x + 2*c) + 2*sin(4*d*x + 4*c)*sin(2*d*
x + 2*c) + sin(2*d*x + 2*c)^2)*sin(1/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c))))*sin(3/2*arctan2(sin(2*d*x
+ 2*c), cos(2*d*x + 2*c) + 1)))/((cos(2*d*x + 2*c)^4 + sin(2*d*x + 2*c)^4 + (cos(2*d*x + 2*c)^2 + sin(2*d*x +
2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*cos(6*d*x + 6*c)^2 + 4*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*
x + 2*c) + 1)*cos(4*d*x + 4*c)^2 + 2*cos(2*d*x + 2*c)^3 + (cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d
*x + 2*c) + 1)*sin(6*d*x + 6*c)^2 + 4*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(4
*d*x + 4*c)^2 + (2*cos(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(2*d*x + 2*c)^2 + 2*(cos(2*d*x + 2*c)^3 + c
os(2*d*x + 2*c)*sin(2*d*x + 2*c)^2 + 2*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*cos(
4*d*x + 4*c) + 2*cos(2*d*x + 2*c)^2 + cos(2*d*x + 2*c))*cos(6*d*x + 6*c) + 4*(cos(2*d*x + 2*c)^3 + cos(2*d*x +
2*c)*sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c)^2 + cos(2*d*x + 2*c))*cos(4*d*x + 4*c) + cos(2*d*x + 2*c)^2 + 2*
(sin(2*d*x + 2*c)^3 + 2*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(4*d*x + 4*c) +
(cos(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(2*d*x + 2*c))*sin(6*d*x + 6*c) + 4*(sin(2*d*x + 2*c)^3 + (co
s(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(2*d*x + 2*c))*sin(4*d*x + 4*c))*cos(3/2*arctan2(sin(2*d*x + 2*c
), cos(2*d*x + 2*c) + 1))^2 + (cos(2*d*x + 2*c)^4 + sin(2*d*x + 2*c)^4 + (cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c
)^2 + 2*cos(2*d*x + 2*c) + 1)*cos(6*d*x + 6*c)^2 + 4*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x +
2*c) + 1)*cos(4*d*x + 4*c)^2 + 2*cos(2*d*x + 2*c)^3 + (cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x +
2*c) + 1)*sin(6*d*x + 6*c)^2 + 4*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(4*d*x
+ 4*c)^2 + (2*cos(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(2*d*x + 2*c)^2 + 2*(cos(2*d*x + 2*c)^3 + cos(2
*d*x + 2*c)*sin(2*d*x + 2*c)^2 + 2*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*cos(4*d*
x + 4*c) + 2*cos(2*d*x + 2*c)^2 + cos(2*d*x + 2*c))*cos(6*d*x + 6*c) + 4*(cos(2*d*x + 2*c)^3 + cos(2*d*x + 2*c
)*sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c)^2 + cos(2*d*x + 2*c))*cos(4*d*x + 4*c) + cos(2*d*x + 2*c)^2 + 2*(sin
(2*d*x + 2*c)^3 + 2*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(4*d*x + 4*c) + (cos
(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(2*d*x + 2*c))*sin(6*d*x + 6*c) + 4*(sin(2*d*x + 2*c)^3 + (cos(2*
d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)*sin(2*d*x + 2*c))*sin(4*d*x + 4*c))*sin(3/2*arctan2(sin(2*d*x + 2*c), c
os(2*d*x + 2*c) + 1))^2), x))*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c) + 1)^(1/4)*sqrt(a)
+ 4*(5*(3*(A + B)*a*sin(4*d*x + 4*c) + 2*(3*A + 4*B + 3*C)*a*sin(2*d*x + 2*c))*cos(5/2*arctan2(sin(2*d*x + 2*
c), cos(2*d*x + 2*c) + 1)) - (15*(A + B)*a*cos(4*d*x + 4*c) + 10*(3*A + 4*B + 3*C)*a*cos(2*d*x + 2*c) + (15*A
+ 25*B + 18*C)*a)*sin(5/2*arctan2(sin(2*d*x + 2*c), cos(2*d*x + 2*c) + 1)))*sqrt(a))/((d*cos(2*d*x + 2*c)^2 +
d*sin(2*d*x + 2*c)^2 + 2*d*cos(2*d*x + 2*c) + d)*(cos(2*d*x + 2*c)^2 + sin(2*d*x + 2*c)^2 + 2*cos(2*d*x + 2*c)
+ 1)^(1/4))
Giac [F]
\[
\int (a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\int { {\left (C \sec \left (d x + c\right )^{2} + B \sec \left (d x + c\right ) + A\right )} {\left (a \sec \left (d x + c\right ) + a\right )}^{\frac {3}{2}} \,d x }
\]
[In]
integrate((a+a*sec(d*x+c))^(3/2)*(A+B*sec(d*x+c)+C*sec(d*x+c)^2),x, algorithm="giac")
[Out]
sage0*x
Mupad [F(-1)]
Timed out. \[
\int (a+a \sec (c+d x))^{3/2} \left (A+B \sec (c+d x)+C \sec ^2(c+d x)\right ) \, dx=\int {\left (a+\frac {a}{\cos \left (c+d\,x\right )}\right )}^{3/2}\,\left (A+\frac {B}{\cos \left (c+d\,x\right )}+\frac {C}{{\cos \left (c+d\,x\right )}^2}\right ) \,d x
\]
[In]
int((a + a/cos(c + d*x))^(3/2)*(A + B/cos(c + d*x) + C/cos(c + d*x)^2),x)
[Out]
int((a + a/cos(c + d*x))^(3/2)*(A + B/cos(c + d*x) + C/cos(c + d*x)^2), x)